package com.deco.dao.logic.product;

import com.deco.dao.domain.table.PqmsHistory;
import com.deco.dao.mapper.PqmsHistoryMapper;
import com.free.ext.mybatis.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PqmsHistoryDao extends BaseDao<PqmsHistory,Integer> {

    @Autowired
    private PqmsHistoryMapper mapper;


    public Integer getCount(PqmsHistory history){
        Integer count = mapper.getCount(history);
        return count == null ? 0 : count;
    }
}
